* minibuffer.el (completion-in-region): Document PREDICATE
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 2 Jul 2011 16:07:30 +0000 (18:07 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 2 Jul 2011 16:07:30 +0000 (18:07 +0200)
(bug#7136).

lisp/ChangeLog
lisp/minibuffer.el

index b88c99dfee4d5eb0f8ad0047aa7a42bf48ec4cf2..9e446953efdb649d3bfc049d69613fc0d3fe5cce 100644 (file)
@@ -1,5 +1,8 @@
 2011-07-02  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * minibuffer.el (completion-in-region): Document PREDICATE
+       (bug#7136).
+
        * info-look.el (info-lookup-add-help): Clarify that ARGS is a list
        of keyword/argument pairs (bug#6904).
 
index 1700b90eb1e7a200efa705fe3075a72714435879..d62b377954db0828a6b9244eb0cd7dc79224d2e8 100644 (file)
@@ -1442,7 +1442,9 @@ we entered `completion-in-region-mode'.")
 (defun completion-in-region (start end collection &optional predicate)
   "Complete the text between START and END using COLLECTION.
 Return nil if there is no valid completion, else t.
-Point needs to be somewhere between START and END."
+Point needs to be somewhere between START and END.
+PREDICATE (a function called with no arguments) says when to
+exit."
   (assert (<= start (point)) (<= (point) end))
   (with-wrapper-hook
       ;; FIXME: Maybe we should use this hook to provide a "display